package daiwei.javaWeb.exam.meta;

public class BoughtProduct extends Product {

	private double buyPrice;
	private long buyTime;
	
	public BoughtProduct(double price, String title, String image, String summary, String text, int buyPrice,
			long buyTime) {
		super(price, title, image, summary, text);
		super.setIsSell(true);
		super.setIsBuy(true);
		this.buyPrice = buyPrice;
		this.buyTime = buyTime;
	}
	
	public BoughtProduct(){
		
	}
	
	public double getBuyPrice() {
		return buyPrice;
	}
	public void setBuyPrice(double buyPrice) {
		this.buyPrice = buyPrice/100;
	}
	public long getBuyTime() {
		return buyTime;
	}
	public void setBuyTime(long buyTime) {
		this.buyTime = buyTime;
	}
}
